// _compoments/oneBtnTipFrame/oneBtnTipFrame.js
const app = getApp();
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        isSmallType: {
            type: Boolean,
            value: false
        },

        frameSmallBgImage: {
            type: String,
            value: "https://morefun-active-1.oss-cn-shanghai.aliyuncs.com/2022_lamer_cream_show/room_public/tip-frame-s.png?t=1"
        },

        frameBgImage: {
            type: String,
            value: "https://morefun-active-1.oss-cn-shanghai.aliyuncs.com/2022_lamer_cream_show/room_public/tip-frame.png?t=1"
        },

        btnImage: {
            type: String,
            value: "https://morefun-active-1.oss-cn-shanghai.aliyuncs.com/2022_lamer_cream_show/index/btn-explorer.png"
        },

        tipContentImage: {
            type: String,
            value: "https://morefun-active-1.oss-cn-shanghai.aliyuncs.com/2022_lamer_cream_show/index/tip-start.png"
        },

        needCloseBtn: {
            type: Boolean,
            value: true
        },

        isHori: {
            type: Boolean,
            value: false
        },

        bottomBtnImage: {
            type: String,
            value: ""            
        },

        needBottomBtn: {
            type: Boolean,
            value: false
        }
    },

    /**
     * 组件的初始数据
     */
    data: {
        baseUrl: app.globalData.baseUrl
    },

    /**
     * 组件的方法列表
     */
    methods: {
        onTipBtnClick() {
            this.triggerEvent("onTipBtnClick");
        },

        onTipBtnCloseClick() {
            this.triggerEvent("onTipBtnCloseClick");
        },

        onBottomBtnClick() {
            this.triggerEvent("onBottomBtnClick");
        }
    }
})
